read file c#

66

read file c# -

string text = File.ReadAllText(@"c:\file.txt", Encoding.UTF8);

c# read from file -

string[] lines = File.ReadAllLines(@"c:\file.txt", Encoding.UTF8);

read file c# -

string contents = File.ReadAllText(@"C:\temp\test.txt");

Comments

Submit
0 Comments